#include <iostream>
#include <fstream>
#include <string.h>

using namespace std;

class textureGen {
private:
    int width;
    int height;
    unsigned char* texture;
    
    int readInt(ifstream& input);
    short readShort(ifstream& input);
    int toInt(const char* bytes);
    short toShort(const char* bytes);
    
public:
    textureGen(int w, int h);
    ~textureGen();
    
    int getWidth();
    int getHeight();
    unsigned char* getTexture();
    void readPPM(const char* fileName);
    void readBMP(const char* fileName);
};
